Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix][JDBC] Fix starrocks jdbc dialect catalog conflict with starrocks connector #7578

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

liunaijie
Copy link
Member

Purpose of this pull request

close #7551

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test case for this?

@Hisoka-X Hisoka-X added this to the 2.3.8 milestone Sep 5, 2024
@github-actions github-actions bot added the e2e label Sep 6, 2024
@liunaijie liunaijie force-pushed the hotfix/sr_jdbc_dialect branch from 94c3199 to 08d2e82 Compare September 6, 2024 09:24
@Hisoka-X Hisoka-X changed the title [hotfix] fix sr jdbc dialect catalog conflict with sr connector [Fix][JDBC] Fix starrocks jdbc dialect catalog conflict with starrocks connector Sep 12, 2024
value = {},
type = {EngineType.FLINK, EngineType.SPARK},
disabledReason = "only Zeta Engine can get this log")
void checkResult(String executeKey, TestContainer container, Container.ExecResult execResult) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@liunaijie liunaijie force-pushed the hotfix/sr_jdbc_dialect branch from f2c6054 to 366b9a4 Compare September 12, 2024 23:23
@liunaijie liunaijie force-pushed the hotfix/sr_jdbc_dialect branch from a5d4931 to 45e5ba4 Compare September 13, 2024 03:18
@@ -112,7 +112,7 @@ public abstract class AbstractJdbcIT extends TestSuiteBase implements TestResour

abstract JdbcCase getJdbcCase();

abstract void compareResult(String executeKey) throws SQLException, IOException;
void checkResult(String executeKey, TestContainer container, Container.ExecResult execResult) {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add more parameter to help check log.
and delete the abstract keyword, the implement class only need implement it when necessary.

if (container.identifier().equals(TestContainerId.SEATUNNEL)) {
Assertions.assertTrue(
execResult.getStdout().contains("Loading catalog tables for catalog"));
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i run some test, find the stdout and container log is different on different engine and version.
so here only check seatunnel engine's log.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@hailin0 hailin0 merged commit 020aab4 into apache:dev Sep 13, 2024
9 checks passed
@nianliuu nianliuu mentioned this pull request Sep 14, 2024
nianliuu referenced this pull request in zilliztech/vts Sep 14, 2024
@liunaijie liunaijie deleted the hotfix/sr_jdbc_dialect branch September 22, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [StarRocks] StarRocks JDBC Dialect confilect with StarRocks Connector
3 participants